# -*- coding: utf-8 -*-
# Houdini To Arnold
# Copyright (C) 2013 Erkan Ozgur Yilmaz
#
# This file is part of Houdini To Arnold.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 2.1 of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA


def generate_data(params):
    template = """
MayaShadingEngine
{
 name aiStandard2SG
 beauty aiStandard2
 enable_matte off
 matte_color 0 0 0 0
}

standard
{
 name aiStandard2
 Kd 0.699999988
 Kd_color 0.0499999523 1 0
 diffuse_roughness 0
 Ks 0
 Ks_color 1 1 1
 specular_brdf "cook_torrance"
 specular_roughness 0.4669047
 specular_anisotropy 0.5
 specular_rotation 0
 Phong_exponent 10
 Kr 0
 Kr_color 1 1 1
 reflection_exit_color 0 0 0
 reflection_exit_use_environment off
 Kt 0
 Kt_color 1 1 1
 transmittance 1 1 1
 refraction_roughness 0
 refraction_exit_color 0 0 0
 refraction_exit_use_environment off
 IOR 1
 Kb 0
 Fresnel off
 Krn 0
 specular_Fresnel off
 Ksn 0
 Fresnel_use_IOR off
 Fresnel_affect_diff on
 emission 0
 emission_color 1 1 1
 direct_specular 1
 indirect_specular 1
 direct_diffuse 1
 indirect_diffuse 1
 enable_glossy_caustics off
 enable_reflective_caustics off
 enable_refractive_caustics off
 enable_internal_reflections on
 Ksss 0
 Ksss_color 1 1 1
 sss_radius 0.100000001 0.100000001 0.100000001
 bounce_factor 1
 opacity 1 1 1
 aov_emission "emission"
 aov_direct_diffuse "direct_diffuse"
 aov_direct_specular "direct_specular"
 aov_indirect_diffuse "indirect_diffuse"
 aov_indirect_specular "indirect_specular"
 aov_reflection "reflection"
 aov_refraction "refraction"
 aov_sss "sss"
}

"""
    return template
